/**
 * 登录验证api
 */
export enum AuthApi {
  Login = "/system/auth/login",
  Logout = "/system/auth/logout",
  GetCodeImage = "/system/auth/code",
}

/**
 * user api
 */

export enum UserApi {
  GetUserInfo = "/system/user/info",
  GetUserListByPage = "/system/user/page",
  RestUserApi = "/system/user",
}

/**
 * menu api
 */

export enum MenuApi {
  BuildMenus = "/system/menu/nav/build",
  MenuTree = "/system/menu/tree",
  GetMenuListByPage = "/system/menu/page",
  RestMenuApi = "/system/menu",
}

/**
 * role api
 */

export enum RoleApi {
  GetRoles = "/system/role",
  GetRoleListByPage = "/system/role/page",
  UpdateRoleAndMenus = "/system/role/updateRoleAndMenus",
  UpdateRoleAndApis = "/system/role/updateRoleAndApis"
}

export enum DictApi {
  GetDictByNames = "/system/dict/dictNames",
}

export enum OrganizationApi {
  GetTree = "/unit/organization/getTree",
}

export enum PositionsApi {
  GetPositions = "/unit/position",
}

export enum ApiApi {
  RestApi = "/system/api",
}

/**
 * 通知api
 */

export enum NotifyApi {
  GetListByReceiveIdAndType = "/notify/message/list/group/type",
  ListByIds = "/notify/message/info/listByIds"
}

export default { AuthApi, UserApi, MenuApi };
